package com.xhwl.logistics.bo;

import com.xhwl.logistics.vo.VehicleStatisticsDateVO;
import lombok.Getter;
import lombok.Setter;
import org.springframework.beans.BeanUtils;

@Setter
@Getter
public class VehicleAccessRecordStatisticsDateBO {

    private String date;

    private Integer count;

    public VehicleStatisticsDateVO toVehicleStatisticsDateVO() {
        VehicleStatisticsDateVO vehicleStatisticsDateVO = new VehicleStatisticsDateVO();
        vehicleStatisticsDateVO.setDate(date);
        vehicleStatisticsDateVO.setCount(count);
        return vehicleStatisticsDateVO;
    }

    public VehicleAccessRecordStatisticsDateBO copyVehicleAccessRecordStatisticsDateBO() {
        VehicleAccessRecordStatisticsDateBO vehicleAccessRecordStatisticsDateBO = new VehicleAccessRecordStatisticsDateBO();
        BeanUtils.copyProperties(this, vehicleAccessRecordStatisticsDateBO);
        return vehicleAccessRecordStatisticsDateBO;
    }

}
